﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using SsoaFramework.Service;

namespace UserService
{
    class Program
    {
        public static LogService logService = new LogService("UserService");
        
        static void Main(string[] args)
        {
            using (StandardizedServiceHost host = new StandardizedServiceHost(typeof(UserService), new Uri("http://localhost:7234")))
            {
                host.AddServiceEndpoint(typeof (IUserService), new WSHttpBinding(), String.Empty);
                host.Open();
                logService.Info("Service started");
                Console.WriteLine("UserService started");
                Console.ReadKey();
            }
            logService.Info("Service stopped");
        }
    }
}
